/**
 * 小柯奇思妙想 2016-11-17 19:48:02
 */


//tab菜单的初始化
$('.menu .item').tab({
    cache: false,
    // faking API request
    apiSettings: {
        loadingDuration : 300,
        responseAsync: function(settings,callback) {
            var response = {
                first: function(){
                    var result;
                    $.ajax({
                        url: full_path + 'v/article/manage.jhtml',
                        async: false,
                        success: function(data){
                            result = data;
                        }
                    });
                    return result;
                },
                second: function(){
            	   var result;
                   $.ajax({
                       url: full_path + 'v/category/manage.jhtml',
                       async: false,
                       success: function(data){
                           result = data;
                       }
                   });
                   return result;
                }
            };
            callback(response[settings.urlData.tab]);
        }
    },
    context : 'parent',
    path    : '/'
});

//模拟点击文章管理==初始化
(function(){
	$("#article-manage").trigger('click');
})();



